
<h1>XML Subfield-Finder</h1>
<br>

<%= form_tag :action =>  "showsubfield" do %>

<p>
<%= label :subfield, "Subfield (e.g. 100$a)" %>
<%= text_field_tag :subfield, @subfield%>
<%= submit_tag "search" %>
<% end %>
</p>

<% if @countno %>
<%= @tag%>$<%= @code%> has <%= @countno %> entries.

<br>
<br>
Content: <br>
<% end %> 
<% if @nodes %>
<% @nodes.to_a.each do |node| %>
<%= node.content %><br>
<% end %>
<% end %>
